package com.mp.approvalreq.entity;

import java.math.BigDecimal;

/**
 * @author xq
 */
public class ConditionFlow {

	/**
	 * 小于
	 */
	private static final int SYMBOL_LESS_THAN = 0;
	/**
	 * 小于等于
	 */
	public static final int SYMBOL_LESS_THAN_OR_EQUAL = 1;

	private int id;
	private int templateId;
	/**
	 * 条件类型 1:金额，2:时长
	 */
	private String conditionType;
	/**
	 * 关联的num，格式：xx,xx
	 */
	private String relaComponentNum;
	/**
	 * 条件计算类型：1：比较，2：在某某范围内
	 */
	private int conditionCalculationType;
	/**
	 * 比较条件下的最小因子
	 */
	private BigDecimal smallerFactor;
	/**
	 * 比较条件下的最大因子
	 */
	private BigDecimal greaterFactor;
	/**
	 * 左侧符号 0.小于; 1.小于等于 （默认0）
	 */
	private int leftSymbol;
	/**
	 * 右侧符号 0.小于; 1.小于等于 （默认1）
	 */
	private int rightSymbol;
	/**
	 * 范围条件下的范围，数据以xx,xx,xx保存
	 */
	private String range;
	/**
	 * 创建时间
	 */
	private String createTime;
	private int companyId;
	/**
	 * 审批流，xx,xx,xx
	 */
	private String requestFlow;
	/**
	 * 是否支持灵活审批,0不1是
	 */
	private int isAllowedToEditJudger;

	/**
	 * 2018-06-12
	 * 单位类型:
	 * 条件类型为金额时,0为元
	 * 条件类型为时长时,0为天,1为小时
	 */
	private int unitType;

	/**
	 * 选项格式: ["x","y","z"]
	 */
	private String chooseItems;

	public ConditionFlow() {
		this.leftSymbol = SYMBOL_LESS_THAN;
		this.rightSymbol = SYMBOL_LESS_THAN_OR_EQUAL;
	}

	public int getUnitType() {
		return unitType;
	}

	public void setUnitType(int unitType) {
		this.unitType = unitType;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getTemplateId() {
		return templateId;
	}

	public void setTemplateId(int templateId) {
		this.templateId = templateId;
	}

	public String getConditionType() {
		return conditionType;
	}

	public void setConditionType(String conditionType) {
		this.conditionType = conditionType;
	}

	public String getRelaComponentNum() {
		return relaComponentNum;
	}

	public void setRelaComponentNum(String relaComponentNum) {
		this.relaComponentNum = relaComponentNum;
	}

	public int getConditionCalculationType() {
		return conditionCalculationType;
	}

	public void setConditionCalculationType(int conditionCalculationType) {
		this.conditionCalculationType = conditionCalculationType;
	}

	public BigDecimal getSmallerFactor() {
		return smallerFactor;
	}

	public void setSmallerFactor(BigDecimal smallerFactor) {
		this.smallerFactor = smallerFactor;
	}

	public BigDecimal getGreaterFactor() {
		return greaterFactor;
	}

	public void setGreaterFactor(BigDecimal greaterFactor) {
		this.greaterFactor = greaterFactor;
	}

	public int getLeftSymbol() {
		return leftSymbol;
	}

	public void setLeftSymbol(int leftSymbol) {
		this.leftSymbol = leftSymbol;
	}

	public int getRightSymbol() {
		return rightSymbol;
	}

	public void setRightSymbol(int rightSymbol) {
		this.rightSymbol = rightSymbol;
	}

	public String getRange() {
		return range;
	}

	public void setRange(String range) {
		this.range = range;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public int getCompanyId() {
		return companyId;
	}

	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}

	public String getRequestFlow() {
		return requestFlow;
	}

	public void setRequestFlow(String requestFlow) {
		this.requestFlow = requestFlow;
	}

	public int getIsAllowedToEditJudger() {
		return isAllowedToEditJudger;
	}

	public void setIsAllowedToEditJudger(int isAllowedToEditJudger) {
		this.isAllowedToEditJudger = isAllowedToEditJudger;
	}

	public String getChooseItems() {
		return chooseItems;
	}

	public void setChooseItems(String chooseItems) {
		this.chooseItems = chooseItems;
	}
}
